# Maintainer: atom2013 <atom.long@hotmail.com>

pkgbase=python-six
pkgname=('python-six')
pkgver=1.15.0
pkgrel=2
provides=("python3-six")
replaces=("python3-six")
conflicts=("python3-six")
pkgdesc="Python compatibility utilities"
arch=('any')
url="https://pypi.python.org/pypi/six/"
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://pypi.io/packages/source/s/six/six-${pkgver}.tar.gz")
sha256sums=('30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259')

build() {
  cd "${srcdir}"/six-${pkgver}
  /usr/bin/python setup.py build
}

check() {
  cd "${srcdir}"/six-${pkgver}
  py.test
}

package() {
  cd six-${pkgver}
  /usr/bin/python setup.py install --root "${pkgdir}" --optimize=1 --skip-build
  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
